import App from './App'
// main.js
import uView from "uview-ui";
Vue.use(uView);
import '@/components/interceptor.js';//引入拦截

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

Vue.prototype.ScanAudio = function() {

    var music = null;

    music = uni.createInnerAudioContext(); //创建播放器对象

    music.src = "static/mp3/exactness.mp3";

    music.play(); //执行播放
console.log('成功了')
    music.onEnded(() => {

        //播放结束

        music = null;

    });}
	Vue.prototype.ScanAudioerr = function() {
	
	    var music = null;
	
	    music = uni.createInnerAudioContext(); //创建播放器对象
	
	    music.src = "static/mp3/error.mp3";
	
	    music.play(); //执行播放
	console.log('失败')
	    music.onEnded(() => {
	
	        //播放结束
	
	        music = null;
	
	    });}



// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif